using System;
using System.IO;
using FireStarter.Base;
using FireStarterModeller.BO;

namespace FireStarter.CodeGeneration
{
    public class UIVWGProjectTemplateLoader : TemplateLoader
    {
        public string GetControlFactory(string namespaceName, IModelSolution modelSolution)
        {
            string fileName = "";
            string fileContents;
            if (!loadFromFile(fileName, out fileContents))
            {
                fileContents = Templates.UI_VWG_ControlFactory;
            }

            return GetGeneratedTemplate(fileContents, modelSolution);
        }
    }
}